#include<iostream>
using namespace std;

class Date
{
public:
	Date(int year,int month,int day)
	{
		_year = year;
		_month = month;
		_day = day;
	}
	int operator==(const Date& d);
	/*int operator==(const Date& d)
	{
		return _year == d._year
			&& _month == d._month
		    && _day == d._day;
	}*/
private:
	int _year;
	int _month;
	int _day;
};

int Date::operator==(const Date& d)
{
		return _year == d._year
			&& _month == d._month
			&& _day == d._day;
}

int main()
{
	Date d1(2024,3,12);
	Date d2(2024, 3, 11);

	cout << (d1 == d2) << endl;

	return 0;
}